package com.hfkh;

import java.util.Scanner;

/**
 * @Author MDD
 * @Description
 * @Version
 * @Date
 **/
public class Code05 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入数字1-7（输入0结束）：");
        int num = sc.nextInt();

        while (num != 0) {
            if (num > 7 || num < 0) {
                System.out.println("你输入的不是1-7，请重新输入");
                num = sc.nextInt();
                if (num==0){
                    break;
                }
            }
            else {
                switch (num) {
                    case 1:
                        System.out.println("今天是：" + "MON");
                        break;
                    case 2:
                        System.out.println("今天是：" + "TUE");
                        break;
                    case 3:
                        System.out.println("今天是：" + "WED");
                        break;
                    case 4:
                        System.out.println("今天是：" + "THU");
                        break;
                    case 5:
                        System.out.println("今天是：" + "FRI");
                        break;
                    case 6:
                        System.out.println("今天是：" + "SAT");
                        break;
                    case 7:
                        System.out.println("今天是：" + "SUN");
                        break;
                }
            }
            System.out.println("请输入数字1-7（输入0结束）：");
            num = sc.nextInt();
        }
        System.out.println("程序结束！");
    }
}
